const state = ({
  token:null,
  header_image:'',
  nickname:'',
  message_num:0
});

/*const getters = {
    include: (state) => (val) => {
      return state.list.indexOf(val) > -1;
    }
  }
;*/

const mutations = {
  SET_token(state, value) {
    state.token = value;
  },
  SET_header_image(state, value) {
    state.header_image = value;
  },
  SET_nickname(state, value) {
    state.nickname = value;
  },
  SET_message_num(state, value) {
    state.message_num = value;
  },
  // SET_active(state, value) {
  //   state.active = value;
  // }
};

/*const actions = {
  async setIsPc({state, commit}, val) {
    commit('SET_isPc', val);
  }
};*/

export default {
  namespaced: true,
  state,
  // getters,
  // actions,
  mutations
};
